home *** CD-ROM | disk | FTP | other *** search
- ------------------------------------------------------------------------
-
- VSN: Volume Serial Number Utility V1.0
-
- Copyright (C) 1989 By John F. Stetson
-
- All Rights Reserved
-
- ------------------------------------------------------------------------
-
- VSN.COM is utility program which is used to manage DOS Disk Volume
- Serial Numbers. It operates on IBM-PC compatible computer systems using
- the IBM PC-DOS or Microsoft MS-DOS Operating System Version 2.0 or
- higher.
-
- Disk Volume Serial Numbers were introduced with DOS 4.0. When a disk is
- formatted by FORMAT or copied with DISKCOPY, an 8 digit hexadecimal
- Volume Serial Number is automatically placed in the Boot Sector of the
- disk. Subsequent execution of the DOS CHKDSK, DIR, LABEL, TREE or VOL
- command will cause the Volume Serial Number to be displayed. However,
- no mechanism is provided for the user to create a specified VSN, change
- an existing VSN, or to delete an existing VSN. The VSN.COM utility
- provides these functions.
-
- Perhaps even more useful is its ability to perform these functions for
- disks formatted under ANY version of DOS from 2.0 through 4.0, and it
- can be executed under ANY version of DOS from 2.0 through 4.0. This
- greatly enhances the possible benefits of using Volume Serial Numbers.
-
- The main reason for using Volume Serial Numbers is to establish a unique
- means of identifying a disk. Disks may have identical Volume Labels or
- even identical Directories, but may still contain different data. Since
- DOS 4.0 forces the user to accept the VSN it selects for a disk, and the
- method used is based on the current time, each VSN will be unique.
- However, this means that the assigned VSN's follow no logical pattern
- and are difficult to relate to one another. The VSN utility retains the
- benefits of the concept, but allows the user to establish a numbering
- scheme which can be used to form a disk cataloging sequence which makes
- sense, and is compatible with the format used by DOS 4.0.
-
- The DOS command line syntax is as follows:
-
- VSN [drive:] [xxxx-xxxx] [/d]
-
- where all parameters are optional. If no parameters are specified, help
- information is displayed. If a drive letter is specified, the current
- Volume Serial Number is displayed, or the user is informed that none
- exists. If an 8 hexadecimal digit value is specified, the VSN for the
- specified drive is changed to the specified value. If no drive is
- specified, the current drive is used. VSN's are always specified and
- displayed as 4 hex digits (0-9 or A-F), followed by a dash (-), followed
- by 4 hex digits. The /d switch causes the current VSN for the specified
- drive to be deleted.
-
- Error Messages
-
- Unable to Read Disk Boot Sector - an error occurred when trying to read
- the boot sector for the specified drive.
-
- Unable to Locate System Boot Code - there was no jump instruction at the
- start of the boot sector for the specified drive.
-
- Insufficient Room for Volume Serial Number - the data area after the
- jump instruction in the boot sector was too small to contain the VSN.
-
- Unable to Write Disk Boot Sector - an error occurred when trying to
- write the boot sector for the specified drive.
-
- Status Messages
-
- Drive D: Has No Disk Volume Serial Number
- Drive D: Old Disk Volume Serial Number is: XXXX-XXXX
- Drive D: New Disk Volume Serial Number is: XXXX-XXXX
- Drive D: Volume Serial Number Deleted
-
- Examples of Use
-
- VSN C: - display the VSN (if any) for drive C:
-
- VSN C: 0001-0002 - create or change the VSN for drive C:
-
- VSN A: 1989-0001 - create or change the VSN for drive A:
-
- VSN C: /D - delete the VSN for drive C:
-
- ------------------------------------------------------------------------
-